﻿@model IEnumerable<FormulaRunning.Models.Formula>

@{
    ViewBag.Title = "Index";
}

<script type="text/javascript" src="~/Formula/js/mathjax2.0/MathJax.js?config=AM_HTMLorMML-full"></script>


@foreach (var item in Model)
{
    <div class="formula-block">
        <div class="f-name">@Html.ActionLink(item.Title, "Details", new { id = item.FormulaID })</div>
      
        <div class="f-text">`@Html.DisplayFor(modelItem => item.FormulaString)`</div>
        
    
           <div class="f-time">@Html.DisplayFor(modelItem => item.SubmitTime)</div> 
           <div class="f-user">@Html.DisplayFor(modelItem => item.UserName)</div>
         
    

        <br />
        <div  class="tags">
                <div  class="tags-h3">Tags:</div>
        
                @foreach (var tag in item.Tags)
                { 
                    <div class="tag">@tag.TagName</div>
                }
         </div>
    </div>
    <br />
    <hr />
}